package com.base.interfacedemo;

interface inter1{
	public static final int AGE=100; //全局常量，公共的不可被改变的
	public abstract void tell();
}

interface inter2{
	public abstract void say();
}

abstract class Abs1{
	public abstract void print();
}

class A extends Abs1 implements inter1,inter2 {
	//复写接口中的所有抽象方法
	public void tell(){}
	public void say(){}
	
	public void print(){}
}

//通过接口多继承
interface Inter3 extends inter1,inter2{
	
}

public class interfacedemo01 {
	public static void main(String[] args) {
		A a=new A();
		a.tell();
	}
}